﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.Sql;

 
namespace sgsBase
{
[Serializable] public class DbSecGroup :  DbObject
{
  public DbSecGroup() : base()
  {
      Table = "dbo.sec_groups";
      Database = "sgs_core";
      Columns.AddColumn("group_id", SqlDbType.Int, true, true);
      Columns.AddColumn("group_type", SqlDbType.Int);
      Columns.AddColumn("group_name", SqlDbType.VarChar);
      Columns.AddColumn("descr", SqlDbType.VarChar);
  }
  
  #region Properties
  
      public int GroupId
      {
          get { return Columns.IntAt(0);}
          set { Columns.SetValAt(0, value);}
      }

      public int GroupType
      {
          get { return Columns.IntAt(1);}
          set { Columns.SetValAt(1, value);}
      }

      public String GroupName
      {
          get { return Columns.StringAt(2);}
          set { Columns.SetValAt(2, value);}
      }

      public String Descr
      {
          get { return Columns.StringAt(3);}
          set { Columns.SetValAt(3, value);}
      }

  
  #endregion
}
}
